﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Entities;
using BLL;

namespace Presentation
{
    public partial class TransferAccountReceiver : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            AccountBLL accB = new AccountBLL();
            CustomerBLL custB = new CustomerBLL();
            AccountsEntity acE = new AccountsEntity();
            CustomersEntity cuE = new CustomersEntity();
            acE.AccountID=(int)Session["AccountID2"];
            cuE.CustID = (int)Session["CustID"];
            AccountsEntity accE = accB.GetAccount(acE);
            LabID.Text = accE.AccountNo.ToString();
            CustomersEntity custE = custB.GetCustomer(cuE);
            LabName.Text = custE.Name.ToString();

        }
        protected void btnAccept_Click(object sender, EventArgs e)
        {
            Response.Redirect("http://localhost:2439/TransferAmount.aspx");
        }
        protected void btnReject_Click(object sender, EventArgs e)
        {
            Response.Redirect("http://localhost:2439/TransferAccount.aspx");
        }
    }
}